<?
error_reporting(E_ALL);
ini_set("display_errors", 1);


// Create image instances
$src = imagecreatefrompng("http://wetterstationen.meteomedia.de/messnetz/vorhersagegrafik/103130.png");
$dest3 = imagecreatetruecolor(680, 348);

$dest2 = imagecreatetruecolor(680, 232);
$dest = imagecreatetruecolor(680, 140);

// Copy
imagecopy($dest2, $src, 0, 0, 160, 28, 680, 210);
imagecopy($dest, $src, 0, 0, 160, 315, 680, 140);

imagecopy($dest3, $dest2, 0, 0, 0, 0, 680, 232);
imagecopy($dest3, $dest, 0, 207, 0, 0, 680, 432);

// Output and free from memory
header('Content-Type: image/png');
imagepng($dest3);

imagedestroy($dest);
imagedestroy($src);

?>